package com.stone.framework.basic.dict.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.stone.framework.basic.dict.entity.DictMember;

@Repository
public interface DictMemberRepository extends JpaRepository<DictMember, Long>, JpaSpecificationExecutor<DictMember> {

    Page<DictMember> findByDictCategoryCode(String categoryCode, Pageable pageable);

    List<DictMember> findByDictCategoryCode(String categoryCode);

}
